package xml;

import javax.xml.bind.annotation.XmlElementWrapper;
import cuShapes.Arrow;

import javax.xml.bind.annotation.XmlElement;
import java.util.List;

/**
 * Intermediary class created to give the properties of a list of {@link cuShapes.Arrow Arrows} an xml saveable form.
 * @author mylesc,varunr
 *
 */
public class ArrowListType {
	// produce a wrapper XML element around this collection
	@XmlElementWrapper(name = "arrows")
	@XmlElement(name = "arrow")
	private List<Arrow> arrows;
	
	public ArrowListType() {}

	public ArrowListType(List<Arrow> arrows) {
		this.arrows = arrows;
	}
	
    public List<Arrow> getArrows() {
        return arrows;
    }
}
